//package com.itheima.practice.controller;
//
//import com.itheima.practice.service.ChatService;
//import org.springframework.http.ResponseEntity;
//import org.springframework.web.bind.annotation.*;
//
//@RestController
//@RequestMapping("/api/chat")
//public class ChatController {
//
//    private final ChatService chatService;
//
//    public ChatController(ChatService chatService) {
//        this.chatService = chatService;
//    }
//
//    @PostMapping
//    public ResponseEntity<String> chat(@RequestParam String sessionId,
//                                       @RequestBody String message) {
//        String reply = chatService.chat(sessionId, message);
//        return ResponseEntity.ok(reply);
//    }
//        }